package com.alifi.crm.dal.guess;

import com.alifi.crm.dal.enu.States;
import com.alifi.crm.dal.enu.YesOrNo;
import com.alifi.crm.dal.object.EmployeeGuessDO;

/**
 * 
 * @author wenjing.huangwj
 *
 */
public interface EmployeeGuessDAO {

	public EmployeeGuessDO selectByEmployeeNum(String employeeNum);
	
	public int getLockByEmployeeNum(String employeeNum);	
	
	public int releaseLockByEmployeeNum(String employeeNum);
	
	public void updateLimitGuessTimes(Long limitGuessTimes, String employeeNum,Long initTransmitTimes,Long actTransmitTimes);
	
	public void updateGuessTimes(Long guessTimes,String employeeNum,YesOrNo isRight,States states,String remark);
	
    public EmployeeGuessDO selectByIdForUpdate(Long id);
    
    public int releaseLockTimeOut();
    
    public void updateStates(States states,String employeeNum);
    
}
